import Vue from "vue";
import Vuex from "vuex";
import getters from "./getters"
import user from "./modules/user"
//1、安装插件
Vue.use(Vuex);

//2、创建store对象
export default new Vuex.Store({
  state:{
    isCollapse: false,
  },
  mutations:{
    switch:(state)=> {
      state.isCollapse = !state.isCollapse;
    },
  },
  getters,
  actions: {},
  modules: {
    user
  },
});

